//
//  HCFindCustomButton.m
//  Aierle
//
//  Created by jiayibai-02por on 2017/6/1.
//  Copyright © 2017年 WillyZhao. All rights reserved.
//

#import "HCFindCustomButton.h"

@interface HCFindCustomButton()

@end

@implementation HCFindCustomButton

- (instancetype)initWithFrame:(CGRect)frame {

    if (self = [super initWithFrame:frame]) {
        
        [self initSubviews:frame];
    }
    return self;
}

- (void)initSubviews:(CGRect)frame {

    self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, frame.size.height-16, frame.size.width, 16)];
    self.nameLabel.font = [UIFont systemFontOfSize:12];
    self.nameLabel.textAlignment = NSTextAlignmentCenter;
    self.nameLabel.textColor = [UIColor grayColor];
    [self addSubview:self.nameLabel];
    
    self.buttonImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, YBKAdaptiveW(36), YBKAdaptiveH(36))];
    self.buttonImage.center = CGPointMake(YBKAdaptiveW(60)/2.0, YBKAdaptiveH(60)/2.0-10);
    [self addSubview:self.buttonImage];
}

@end
